package com.example.blog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.blog.base.PageRequestDto;
import com.example.blog.entity.Favorites;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blog.entity.vo.favorites.FavoritesDetailInfoVO;

import java.util.List;

/**
 * <p>
 * 收藏表 服务类
 * </p>
 *
 * @author wlh
 * @since 2024-01-10
 */
public interface FavoritesService extends IService<Favorites> {

    void add(List<Long> ffId, Long articleId);

    void del(Long ffId, Long articleId);

    /**
     * 根据收藏夹ID获取下面的收藏内容
     * @param ffid
     * @return
     */
    List<Favorites> getByFFId(Long ffid);

    Long getNewCountByUser(Long userId);

    Page<FavoritesDetailInfoVO> pageList(PageRequestDto pageRequestDto);

    void read();

    List<Favorites> getByFFId(List<Long> ffids);

    Long getByUserAndArticle(Long userId, Long artId);
}
